package thread.demo.arrayList;

import java.util.ArrayList;

public class ArrayListTest_Queue {
  public static void main(String[] args) {
    ArrayList<Integer> queue = new ArrayList<>();
    
    queue.add(1);
    queue.add(2);
    queue.add(3);
    
    System.out.println(queue.remove(0));
    System.out.println(queue.remove(0));
    System.out.println(queue.remove(0));
  }
}
